<!DOCTYPE html>
<html>

<head>
    <title>动态参数测试</title>
    <script src="https://unpkg.com/vue/dist/vue.js"></script>
</head>

<body>
    <div id="app">
        <div>
            <input v-model="parentContent">
            <br>
            <child3 v-bind:message2="parentContent"></child3>
        </div>
    </div>

    <script>
        Vue.component('child3', {
            props: ["message2"],
            template: "<span>{{message2}}</>"
        })

        new Vue({
            el: "#app",
            data: {
                parentContent: "父标签容器"
            }
        })
    </script>
</body>

</html>